package com.hukun.ssm1110.mapper;

import com.hukun.ssm1110.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {

    public User Login(User user);

    //源码  把数据库查询出的结果集用反射机制找到User类里面的set get方法把结果放入对象的属性里
    public List<User> getUsers();

    public User getUsersById(Integer userid);


    public int updateUser(User user);
}
